﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GuessLAB
{
    public partial class DatePicker : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void OnDayRender(object sender, DayRenderEventArgs e)
        {
            HyperLink lnk = new HyperLink();
            lnk.Text = ((LiteralControl)e.Cell.Controls[0]).Text;
            lnk.Attributes.Add("href", "javascript:fnSetDate('" +
            e.Day.Date.ToShortDateString() + "')");
            e.Cell.Controls.Clear();
            e.Cell.Controls.Add(lnk);
        }

    }
}